4D Chart v13

CT SET DATE SCALE

Home

 
4D Chart v13
CT SET DATE SCALE

CT SET DATE SCALE 


 

CT SET DATE SCALE ( area ; object ; minAuto ; maxAuto ; majIncrAuto ; minIncrAuto ; minimum ; maximum ; majIncrType ; majorIncr ; minIncrType ; minorIncr ) 
Parameter Type   Description
area  Longint in 4D Chart object
object  Longint in Object ID
minAuto  Integer in Use default minimum? -1 = No change 0 = No 1 = Yes
maxAuto  Integer in Use default maximum? -1 = No change 0 = No 1 = Yes
majIncrAuto  Integer in Use default major increment? -1 = No change 0 = No 1 = Yes
minIncrAuto  Integer in Use default minor increment? -1 = No change 0 = No 1 = Yes
minimum  Date in Minimum value
maximum  Date in Maximum value
majIncrType  Integer in Use default major increment type? -1 = No change 1 = Days 2 = Weeks 3 = Months 4 = Years
majorIncr  Integer in Major increment
minIncrType  Integer in Use default minor increment type? -1 = No change 1 = Days 2 = Weeks 3 = Months 4 = Years
minorIncr  Integer in Minor increment

Use CT SET DATE SCALE to use the default values or to set alternative values for the Values axis scale.

CT SET DATE SCALE is used when the values are dates.

minAuto and maxAuto specify whether to use the default minimum and maximum values.

majIncrAuto and minIncrAuto specify whether to use the default major and minor increments.

minimum and maximum are the alternative minimum and maximum values.

majIncrType and minIncrType are codes for the units in which the majorIncr and minorIncr parameters are specified.

majorIncr and minorIncr are the alternative major and minor increments.

Example  

This example creates a chart from the database and sets the scale values.

 ARRAY INTEGER(aYFields;2)
 aYFields{1}:=2
 aYFields{2}:=3
 $ChartID:=CT Chart selection(Area;2;1;1;Table(->[Customer]);Field(->[Customer]Customer Type);aYFields)
 CT SET DATE SCALE(Area;$ChartID;0;0;0;0;0;!01/01/90!;!12/30/95!;4;1;3;1)

 
PROPERTIES 

Product: 4D Chart
Theme: CT Chart
Number: 14542

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT GET DATE SCALE
CT GET REAL SCALE
CT SET REAL SCALE